﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Linq;
using SMS.Entities.BaseClasses;
using System.Collections.Generic;

namespace SMS.Common.Silverlight
{
    public class BaseReport : BaseNotify
    {
        public BaseReport()
        {
            SearchOptionList = new List<string> { "None", "Daily", "Weekly", "Monthly", "Quarterly", "Half Yearly", "Yearly" };
            SelectedSearchOption = SearchOptionList.FirstOrDefault(m => m.Contains("Monthly"));
        }


        


        public virtual string ToObjectString()
        {
            return this.ToString();
        }

        #region "Property For ReportControl"

        private DateTime _FromDate = new DateTime(DateTime.Now.Year, 1, 1);

        public DateTime FromDate
        {
            get { return _FromDate; }
            set { _FromDate = value; OnPropertyChanged("FromDate"); }
        }

        private DateTime _EndDate = DateTime.Now;

        public DateTime EndDate
        {
            get { return _EndDate; }
            set { _EndDate = value; OnPropertyChanged("EndDate"); }
        }

        private List<string> _SearchOptionList;

        public List<string> SearchOptionList
        {
            get { return _SearchOptionList; }
            set { _SearchOptionList = value; OnPropertyChanged("SearchOptionList"); }
        }
        private string _SelectedSearchOption;

        public string SelectedSearchOption
        {
            get { return _SelectedSearchOption; }
            set
            {
                _SelectedSearchOption = value; OnPropertyChanged("SelectedSearchOption");
               
            }
        }

        #endregion
    }
}
